a = 100     # 赋值操作
b = 99

# 比较运算符
print(a == b)   # 比较操作
print(a < b)
print(a >= b)
print(a != b)

# 赋值运算符
a += 1      # a = a + 1
print(a)
a -= 2
print(a)

# 逻辑运算符
a = True
print(not a)    # 取非
print(True and False)    # 并且
print(False or True)    # 或者

# 成员操作符
my_name = "hello world"
a = 'z'
print(a in my_name)     # 字符是否在字符串中
print(a not in my_name)     # 字符是否在字符串中
